package com.cskaoyan._03otherstream._02print;

import java.io.IOException;
import java.io.PrintStream;

/**
 * @description:
 * @author: 景天
 * @date: 2023/2/20 15:02
 **/
/*
使用字节打印流 打印数据
 */
public class Demo2 {
    public static void main(String[] args) throws IOException {
        // 创建输出流对象
        PrintStream printStream = new PrintStream("a.txt");
        // print方法
        printStream.print(true);
        printStream.print(1000);
        printStream.print(3.14);
        // close
        printStream.close();
    }
}
